import 'package:fluttertoast/fluttertoast.dart';

class JrToast {
  static Future<void> show(String msg) async {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_SHORT,
      gravity: ToastGravity.TOP,
      timeInSecForIosWeb: 2
    );
  }

  static void cancel() {
    Fluttertoast.cancel();
  }
}
